<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>idea快捷键大全 | LeDao的博客</title><meta name="keywords" content="idea使用"><meta name="author" content="LeDao"><meta name="copyright" content="LeDao"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="Alt   快捷键 介绍    Alt + &#96; 显示版本控制常用操作菜单弹出层   Alt + Q 弹出一个提示，显示当前类的声明 &#x2F; 上下文信息   Alt + F1 显示当前文件选择目标弹出层，弹出层中有很多目标可以进行选择   Alt + F2 对于前面页面，显示各类浏览器打开目标选择弹出层   Alt + F3 选中文本，逐个往下查找相同文本，并高亮显示   Alt + F7 查找光标所在">
<meta property="og:type" content="article">
<meta property="og:title" content="idea快捷键大全">
<meta property="og:url" content="https://blog.zoutl.cn/1.html">
<meta property="og:site_name" content="LeDao的博客">
<meta property="og:description" content="Alt   快捷键 介绍    Alt + &#96; 显示版本控制常用操作菜单弹出层   Alt + Q 弹出一个提示，显示当前类的声明 &#x2F; 上下文信息   Alt + F1 显示当前文件选择目标弹出层，弹出层中有很多目标可以进行选择   Alt + F2 对于前面页面，显示各类浏览器打开目标选择弹出层   Alt + F3 选中文本，逐个往下查找相同文本，并高亮显示   Alt + F7 查找光标所在">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://image.zoutl.cn/hexo-blog/blogCoverImage/1.jpg">
<meta property="article:published_time" content="2020-10-09T16:41:50.000Z">
<meta property="article:modified_time" content="2022-03-26T06:58:21.511Z">
<meta property="article:author" content="LeDao">
<meta property="article:tag" content="idea使用">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://image.zoutl.cn/hexo-blog/blogCoverImage/1.jpg"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="https://blog.zoutl.cn/1"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//hm.baidu.com"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><meta name="baidu-site-verification" content="fp2ohQruhOqzbyAh"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.10.5/dist/instantsearch.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/instantsearch.js@2.10.5/dist/instantsearch.min.js" defer></script><script>var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?112c188c9864ee3c98ba7e2495734acf";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: {"appId":"0Z2QSKFGM6","apiKey":"079e96e1d3e15e7f2f512596bf590eac","indexName":"hexo_blog","hits":{"per_page":6},"languages":{"input_placeholder":"搜索文章","hits_empty":"找不到您查询的内容：${query}","hits_stats":"找到 ${hits} 条结果，用时 ${time} 毫秒"}},
  localSearch: undefined,
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: {"chs_to_cht":"你已切换为繁体","cht_to_chs":"你已切换为简体","day_to_night":"你已切换为深色模式","night_to_day":"你已切换为浅色模式","bgLight":"#49b1f5","bgDark":"#121212","position":"top-center"},
  source: {
    jQuery: 'https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js',
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/js/jquery.justifiedGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/css/justifiedGallery.min.css'
    },
    fancybox: {
      js: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js',
      css: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isanchor: true
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'idea快捷键大全',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2022-03-26 14:58:21'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const fontSizeVal = saveToLocal.get('global-font-size')
    if (fontSizeVal !== undefined) {
      document.documentElement.style.setProperty('--global-font-size', fontSizeVal + 'px')
    }
    
    const detectApple = () => {
      if (GLOBAL_CONFIG_SITE.isHome && /iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><link rel="stylesheet" href="//at.alicdn.com/t/font_3265865_ia5ii2b8gxh.css"><meta name="generator" content="Hexo 5.4.0"><link rel="alternate" href="/atom.xml" title="LeDao的博客" type="application/atom+xml">
<style>.darkmode--activated{--body-bg-color:#282828;--content-bg-color:#333;--card-bg-color:#555;--text-color:#ccc;--blockquote-color:#bbb;--link-color:#ccc;--link-hover-color:#eee;--brand-color:#ddd;--brand-hover-color:#ddd;--table-row-odd-bg-color:#282828;--table-row-hover-bg-color:#363636;--menu-item-bg-color:#555;--btn-default-bg:#222;--btn-default-color:#ccc;--btn-default-border-color:#555;--btn-default-hover-bg:#666;--btn-default-hover-color:#ccc;--btn-default-hover-border-color:#666;--highlight-background:#282b2e;--highlight-foreground:#a9b7c6;--highlight-gutter-background:#34393d;--highlight-gutter-foreground:#9ca9b6}.darkmode--activated img{opacity:.75}.darkmode--activated img:hover{opacity:.9}.darkmode--activated code{color:#69dbdc;background:0 0}button.darkmode-toggle{z-index:9999}</style></head><body><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><div class="spinner-box"><div class="configure-border-1"><div class="configure-core"></div></div><div class="configure-border-2"><div class="configure-core"></div></div><div class="loading-word">加载中...</div></div></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://image.zoutl.cn/hexo-blog/images/logo.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data"><div class="data-item is-center"><div class="data-item-link"><a href="/archives/"><div class="headline">文章</div><div class="length-num">480</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/tags/"><div class="headline">标签</div><div class="length-num">67</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/categories/"><div class="headline">分类</div><div class="length-num">36</div></a></div></div></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);" rel="external nofollow noreferrer"><i class="fa-fw iconfont icon-ziyuan218"></i><span> 其它</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/gallery/"><i class="fa-fw fas fa-image"></i><span> 壁纸</span></a></li></ul></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('https://image.zoutl.cn/hexo-blog/blogCoverImage/1.jpg')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">LeDao的博客</a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);" rel="external nofollow noreferrer"><i class="fa-fw iconfont icon-ziyuan218"></i><span> 其它</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/gallery/"><i class="fa-fw fas fa-image"></i><span> 壁纸</span></a></li></ul></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">idea快捷键大全</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2020-10-09T16:41:50.000Z" title="发表于 2020-10-10 00:41:50">2020-10-10</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2022-03-26T06:58:21.511Z" title="更新于 2022-03-26 14:58:21">2022-03-26</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/idea%E4%BD%BF%E7%94%A8/">idea使用</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">3.1k</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>10分钟</span></span><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="idea快捷键大全"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h3 id="Alt"><a href="#Alt" class="headerlink" title="Alt"></a>Alt</h3><table>
<thead>
<tr>
<th align="center">快捷键</th>
<th align="center">介绍</th>
</tr>
</thead>
<tbody><tr>
<td align="center">Alt + `</td>
<td align="center">显示版本控制常用操作菜单弹出层</td>
</tr>
<tr>
<td align="center">Alt + Q</td>
<td align="center">弹出一个提示，显示当前类的声明 / 上下文信息</td>
</tr>
<tr>
<td align="center">Alt + F1</td>
<td align="center">显示当前文件选择目标弹出层，弹出层中有很多目标可以进行选择</td>
</tr>
<tr>
<td align="center">Alt + F2</td>
<td align="center">对于前面页面，显示各类浏览器打开目标选择弹出层</td>
</tr>
<tr>
<td align="center">Alt + F3</td>
<td align="center">选中文本，逐个往下查找相同文本，并高亮显示</td>
</tr>
<tr>
<td align="center">Alt + F7</td>
<td align="center">查找光标所在的方法 / 变量 / 类被调用的地方</td>
</tr>
<tr>
<td align="center">Alt + F8</td>
<td align="center">在 Debug 的状态下，选中对象，弹出可输入计算表达式调试框，查看该输入内容的调试结果</td>
</tr>
<tr>
<td align="center">Alt + Home</td>
<td align="center">定位 / 显示到当前文件的 <code>Navigation Bar</code></td>
</tr>
<tr>
<td align="center">Alt + Enter</td>
<td align="center">IntelliJ IDEA 根据光标所在问题，提供快速修复选择，光标放在的位置不同提示的结果也不同 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Alt + Insert</td>
<td align="center">代码自动生成，如生成对象的 set / get 方法，构造函数，toString() 等</td>
</tr>
<tr>
<td align="center">Alt + 左方向键</td>
<td align="center">按左方向切换当前已打开的文件视图</td>
</tr>
<tr>
<td align="center">Alt + 右方向键</td>
<td align="center">按右方向切换当前已打开的文件视图</td>
</tr>
<tr>
<td align="center">Alt + 前方向键</td>
<td align="center">当前光标跳转到当前文件的前一个方法名位置</td>
</tr>
<tr>
<td align="center">Alt + 后方向键</td>
<td align="center">当前光标跳转到当前文件的后一个方法名位置</td>
</tr>
<tr>
<td align="center">Alt + 1,2,3…9</td>
<td align="center">显示对应数值的选项卡，其中 1 是 Project 用得最多</td>
</tr>
</tbody></table>
<h3 id="Ctrl"><a href="#Ctrl" class="headerlink" title="Ctrl"></a>Ctrl</h3><table>
<thead>
<tr>
<th align="center">快捷键</th>
<th align="center">介绍</th>
</tr>
</thead>
<tbody><tr>
<td align="center">Ctrl + F</td>
<td align="center">在当前文件进行文本查找 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + R</td>
<td align="center">在当前文件进行文本替换 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + Z</td>
<td align="center">撤销 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + Y</td>
<td align="center">删除光标所在行 或 删除选中的行 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + X</td>
<td align="center">剪切光标所在行 或 剪切选择内容</td>
</tr>
<tr>
<td align="center">Ctrl + C</td>
<td align="center">复制光标所在行 或 复制选择内容</td>
</tr>
<tr>
<td align="center">Ctrl + D</td>
<td align="center">复制光标所在行 或 复制选择内容，并把复制内容插入光标位置下面 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + W</td>
<td align="center">递进式选择代码块。可选中光标所在的单词或段落，连续按会在原有选中的基础上再扩展选中范围 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + E</td>
<td align="center">显示最近打开的文件记录列表</td>
</tr>
<tr>
<td align="center">Ctrl + N</td>
<td align="center">根据输入的 <strong>类名</strong> 查找类文件</td>
</tr>
<tr>
<td align="center">Ctrl + G</td>
<td align="center">在当前文件跳转到指定行处</td>
</tr>
<tr>
<td align="center">Ctrl + J</td>
<td align="center">插入自定义动态代码模板</td>
</tr>
<tr>
<td align="center">Ctrl + P</td>
<td align="center">方法参数提示显示</td>
</tr>
<tr>
<td align="center">Ctrl + Q</td>
<td align="center">光标所在的变量 / 类名 / 方法名等上面（也可以在提示补充的时候按），显示文档内容</td>
</tr>
<tr>
<td align="center">Ctrl + U</td>
<td align="center">前往当前光标所在的方法的父类的方法 / 接口定义</td>
</tr>
<tr>
<td align="center">Ctrl + B</td>
<td align="center">进入光标所在的方法/变量的接口或是定义出，等效于 <code>Ctrl + 左键单击</code></td>
</tr>
<tr>
<td align="center">Ctrl + K</td>
<td align="center">版本控制提交项目，需要此项目有加入到版本控制才可用</td>
</tr>
<tr>
<td align="center">Ctrl + T</td>
<td align="center">版本控制更新项目，需要此项目有加入到版本控制才可用</td>
</tr>
<tr>
<td align="center">Ctrl + H</td>
<td align="center">显示当前类的层次结构</td>
</tr>
<tr>
<td align="center">Ctrl + O</td>
<td align="center">选择可重写的方法</td>
</tr>
<tr>
<td align="center">Ctrl + I</td>
<td align="center">选择可继承的方法</td>
</tr>
<tr>
<td align="center">Ctrl + +</td>
<td align="center">展开代码</td>
</tr>
<tr>
<td align="center">Ctrl + -</td>
<td align="center">折叠代码</td>
</tr>
<tr>
<td align="center">Ctrl + /</td>
<td align="center">注释光标所在行代码，会根据当前不同文件类型使用不同的注释符号 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + [</td>
<td align="center">移动光标到当前所在代码的花括号开始位置</td>
</tr>
<tr>
<td align="center">Ctrl + ]</td>
<td align="center">移动光标到当前所在代码的花括号结束位置</td>
</tr>
<tr>
<td align="center">Ctrl + F1</td>
<td align="center">在光标所在的错误代码出显示错误信息</td>
</tr>
<tr>
<td align="center">Ctrl + F3</td>
<td align="center">调转到所选中的词的下一个引用位置</td>
</tr>
<tr>
<td align="center">Ctrl + F4</td>
<td align="center">关闭当前编辑文件</td>
</tr>
<tr>
<td align="center">Ctrl + F8</td>
<td align="center">在 Debug 模式下，设置光标当前行为断点，如果当前已经是断点则去掉断点</td>
</tr>
<tr>
<td align="center">Ctrl + F9</td>
<td align="center">执行 Make Project 操作</td>
</tr>
<tr>
<td align="center">Ctrl + F11</td>
<td align="center">选中文件 / 文件夹，使用助记符设定 / 取消书签</td>
</tr>
<tr>
<td align="center">Ctrl + F12</td>
<td align="center">弹出当前文件结构层，可以在弹出的层上直接输入，进行筛选</td>
</tr>
<tr>
<td align="center">Ctrl + Tab</td>
<td align="center">编辑窗口切换，如果在切换的过程又加按上delete，则是关闭对应选中的窗口</td>
</tr>
<tr>
<td align="center">Ctrl + Enter</td>
<td align="center">智能分隔行</td>
</tr>
<tr>
<td align="center">Ctrl + End</td>
<td align="center">跳到文件尾</td>
</tr>
<tr>
<td align="center">Ctrl + Home</td>
<td align="center">跳到文件头</td>
</tr>
<tr>
<td align="center">Ctrl + Space</td>
<td align="center">基础代码补全，默认在 Windows 系统上被输入法占用，需要进行修改，建议修改为 <code>Ctrl + 逗号</code> <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + Delete</td>
<td align="center">删除光标后面的单词或是中文句</td>
</tr>
<tr>
<td align="center">Ctrl + BackSpace</td>
<td align="center">删除光标前面的单词或是中文句</td>
</tr>
<tr>
<td align="center">Ctrl + 1,2,3…9</td>
<td align="center">定位到对应数值的书签位置</td>
</tr>
<tr>
<td align="center">Ctrl + 左键单击</td>
<td align="center">在打开的文件标题上，弹出该文件路径</td>
</tr>
<tr>
<td align="center">Ctrl + 光标定位</td>
<td align="center">按 Ctrl 不要松开，会显示光标所在的类信息摘要</td>
</tr>
<tr>
<td align="center">Ctrl + 左方向键</td>
<td align="center">光标跳转到当前单词 / 中文句的左侧开头位置</td>
</tr>
<tr>
<td align="center">Ctrl + 右方向键</td>
<td align="center">光标跳转到当前单词 / 中文句的右侧开头位置</td>
</tr>
<tr>
<td align="center">Ctrl + 前方向键</td>
<td align="center">等效于鼠标滚轮向前效果</td>
</tr>
<tr>
<td align="center">Ctrl + 后方向键</td>
<td align="center">等效于鼠标滚轮向后效果</td>
</tr>
</tbody></table>
<h3 id="Shift"><a href="#Shift" class="headerlink" title="Shift"></a>Shift</h3><table>
<thead>
<tr>
<th align="center"><strong>快捷键</strong></th>
<th align="center">介绍</th>
</tr>
</thead>
<tbody><tr>
<td align="center">Shift + F1</td>
<td align="center">如果有外部文档可以连接外部文档</td>
</tr>
<tr>
<td align="center">Shift + F2</td>
<td align="center">跳转到上一个高亮错误 或 警告位置</td>
</tr>
<tr>
<td align="center">Shift + F3</td>
<td align="center">在查找模式下，查找匹配上一个</td>
</tr>
<tr>
<td align="center">Shift + F4</td>
<td align="center">对当前打开的文件，使用新Windows窗口打开，旧窗口保留</td>
</tr>
<tr>
<td align="center">Shift + F6</td>
<td align="center">对文件 / 文件夹 重命名</td>
</tr>
<tr>
<td align="center">Shift + F7</td>
<td align="center">在 Debug 模式下，智能步入。断点所在行上有多个方法调用，会弹出进入哪个方法</td>
</tr>
<tr>
<td align="center">Shift + F8</td>
<td align="center">在 Debug 模式下，跳出，表现出来的效果跟 <code>F9</code> 一样</td>
</tr>
<tr>
<td align="center">Shift + F9</td>
<td align="center">等效于点击工具栏的 <code>Debug</code> 按钮</td>
</tr>
<tr>
<td align="center">Shift + F10</td>
<td align="center">等效于点击工具栏的 <code>Run</code> 按钮</td>
</tr>
<tr>
<td align="center">Shift + F11</td>
<td align="center">弹出书签显示层</td>
</tr>
<tr>
<td align="center">Shift + Tab</td>
<td align="center">取消缩进</td>
</tr>
<tr>
<td align="center">Shift + ESC</td>
<td align="center">隐藏当前 或 最后一个激活的工具窗口</td>
</tr>
<tr>
<td align="center">Shift + End</td>
<td align="center">选中光标到当前行尾位置</td>
</tr>
<tr>
<td align="center">Shift + Home</td>
<td align="center">选中光标到当前行头位置</td>
</tr>
<tr>
<td align="center">Shift + Enter</td>
<td align="center">开始新一行。光标所在行下空出一行，光标定位到新行位置</td>
</tr>
<tr>
<td align="center">Shift + 左键单击</td>
<td align="center">在打开的文件名上按此快捷键，可以关闭当前打开文件</td>
</tr>
<tr>
<td align="center">Shift + 滚轮前后滚动</td>
<td align="center">当前文件的横向滚动轴滚动</td>
</tr>
</tbody></table>
<h3 id="Ctrl-Alt"><a href="#Ctrl-Alt" class="headerlink" title="Ctrl + Alt"></a>Ctrl + Alt</h3><table>
<thead>
<tr>
<th align="center">快捷键</th>
<th align="center">介绍</th>
</tr>
</thead>
<tbody><tr>
<td align="center">Ctrl + Alt + L</td>
<td align="center">格式化代码，可以对当前文件和整个包目录使用 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + Alt + O</td>
<td align="center">优化导入的类，可以对当前文件和整个包目录使用 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + Alt + I</td>
<td align="center">光标所在行 或 选中部分进行自动代码缩进，有点类似格式化</td>
</tr>
<tr>
<td align="center">Ctrl + Alt + T</td>
<td align="center">对选中的代码弹出环绕选项弹出层</td>
</tr>
<tr>
<td align="center">Ctrl + Alt + J</td>
<td align="center">弹出模板选择窗口，讲选定的代码加入动态模板中</td>
</tr>
<tr>
<td align="center">Ctrl + Alt + H</td>
<td align="center">调用层次</td>
</tr>
<tr>
<td align="center">Ctrl + Alt + B</td>
<td align="center">在某个调用的方法名上使用会跳到具体的实现处，可以跳过接口</td>
</tr>
<tr>
<td align="center">Ctrl + Alt + V</td>
<td align="center">快速引进变量</td>
</tr>
<tr>
<td align="center">Ctrl + Alt + Y</td>
<td align="center">同步、刷新</td>
</tr>
<tr>
<td align="center">Ctrl + Alt + S</td>
<td align="center">打开 IntelliJ IDEA 系统设置</td>
</tr>
<tr>
<td align="center">Ctrl + Alt + F7</td>
<td align="center">显示使用的地方。寻找被该类或是变量被调用的地方，用弹出框的方式找出来</td>
</tr>
<tr>
<td align="center">Ctrl + Alt + F11</td>
<td align="center">切换全屏模式</td>
</tr>
<tr>
<td align="center">Ctrl + Alt + Enter</td>
<td align="center">光标所在行上空出一行，光标定位到新行</td>
</tr>
<tr>
<td align="center">Ctrl + Alt + Home</td>
<td align="center">弹出跟当前文件有关联的文件弹出层</td>
</tr>
<tr>
<td align="center">Ctrl + Alt + Space</td>
<td align="center">类名自动完成</td>
</tr>
<tr>
<td align="center">Ctrl + Alt + 左方向键</td>
<td align="center">退回到上一个操作的地方 <code>（必备）**（注意与其他软件快捷键冲突）**</code></td>
</tr>
<tr>
<td align="center">Ctrl + Alt + 右方向键</td>
<td align="center">前进到上一个操作的地方 <code>（必备）**（注意与其他软件快捷键冲突）**</code></td>
</tr>
<tr>
<td align="center">Ctrl + Alt + 前方向键</td>
<td align="center">在查找模式下，跳到上个查找的文件</td>
</tr>
<tr>
<td align="center">Ctrl + Alt + 后方向键</td>
<td align="center">在查找模式下，跳到下个查找的文件</td>
</tr>
</tbody></table>
<h3 id="Ctrl-Shift"><a href="#Ctrl-Shift" class="headerlink" title="Ctrl + Shift"></a>Ctrl + Shift</h3><table>
<thead>
<tr>
<th align="center">快捷键</th>
<th align="center">介绍</th>
</tr>
</thead>
<tbody><tr>
<td align="center">Ctrl + Shift + F</td>
<td align="center">根据输入内容查找整个项目 或 指定目录内文件 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + Shift + R</td>
<td align="center">根据输入内容替换对应内容，范围为整个项目 或 指定目录内文件 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + Shift + J</td>
<td align="center">自动将下一行合并到当前行末尾 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + Shift + Z</td>
<td align="center">取消撤销 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + Shift + W</td>
<td align="center">递进式取消选择代码块。可选中光标所在的单词或段落，连续按会在原有选中的基础上再扩展取消选中范围 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + Shift + N</td>
<td align="center">通过文件名定位 / 打开文件 / 目录，打开目录需要在输入的内容后面多加一个正斜杠 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + Shift + U</td>
<td align="center">对选中的代码进行大 / 小写轮流转换 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + Shift + T</td>
<td align="center">对当前类生成单元测试类，如果已经存在的单元测试类则可以进行选择</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + C</td>
<td align="center">复制当前文件磁盘路径到剪贴板</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + V</td>
<td align="center">弹出缓存的最近拷贝的内容管理器弹出层</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + E</td>
<td align="center">显示最近修改的文件列表的弹出层</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + H</td>
<td align="center">显示方法层次结构</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + B</td>
<td align="center">跳转到类型声明处</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + I</td>
<td align="center">快速查看光标所在的方法 或 类的定义</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + A</td>
<td align="center">查找动作 / 设置</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + /</td>
<td align="center">代码块注释 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + Shift + [</td>
<td align="center">选中从光标所在位置到它的顶部中括号位置</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + ]</td>
<td align="center">选中从光标所在位置到它的底部中括号位置</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + +</td>
<td align="center">展开所有代码</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + -</td>
<td align="center">折叠所有代码</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + F7</td>
<td align="center">高亮显示所有该选中文本，按Esc高亮消失</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + F8</td>
<td align="center">在 Debug 模式下，指定断点进入条件</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + F9</td>
<td align="center">编译选中的文件 / 包 / Module</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + F12</td>
<td align="center">编辑器最大化</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + Space</td>
<td align="center">智能代码提示</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + Enter</td>
<td align="center">自动结束代码，行末自动添加分号 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">Ctrl + Shift + Backspace</td>
<td align="center">退回到上次修改的地方</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + 1,2,3…9</td>
<td align="center">快速添加指定数值的书签</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + 左方向键</td>
<td align="center">在代码文件上，光标跳转到当前单词 / 中文句的左侧开头位置，同时选中该单词 / 中文句</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + 右方向键</td>
<td align="center">在代码文件上，光标跳转到当前单词 / 中文句的右侧开头位置，同时选中该单词 / 中文句</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + 左方向键</td>
<td align="center">在光标焦点是在工具选项卡上，缩小选项卡区域</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + 右方向键</td>
<td align="center">在光标焦点是在工具选项卡上，扩大选项卡区域</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + 前方向键</td>
<td align="center">光标放在方法名上，将方法移动到上一个方法前面，调整方法排序</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + 后方向键</td>
<td align="center">光标放在方法名上，将方法移动到下一个方法前面，调整方法排序</td>
</tr>
</tbody></table>
<h3 id="Alt-Shift"><a href="#Alt-Shift" class="headerlink" title="Alt + Shift"></a>Alt + Shift</h3><table>
<thead>
<tr>
<th align="center">快捷键</th>
<th align="center">介绍</th>
</tr>
</thead>
<tbody><tr>
<td align="center">Alt + Shift + N</td>
<td align="center">选择 / 添加 task</td>
</tr>
<tr>
<td align="center">Alt + Shift + F</td>
<td align="center">显示添加到收藏夹弹出层</td>
</tr>
<tr>
<td align="center">Alt + Shift + C</td>
<td align="center">查看最近操作项目的变化情况列表</td>
</tr>
<tr>
<td align="center">Alt + Shift + F</td>
<td align="center">添加到收藏夹</td>
</tr>
<tr>
<td align="center">Alt + Shift + I</td>
<td align="center">查看项目当前文件</td>
</tr>
<tr>
<td align="center">Alt + Shift + F7</td>
<td align="center">在 Debug 模式下，下一步，进入当前方法体内，如果方法体还有方法，则会进入该内嵌的方法中，依此循环进入</td>
</tr>
<tr>
<td align="center">Alt + Shift + F9</td>
<td align="center">弹出 <code>Debug</code> 的可选择菜单</td>
</tr>
<tr>
<td align="center">Alt + Shift + F10</td>
<td align="center">弹出 <code>Run</code> 的可选择菜单</td>
</tr>
<tr>
<td align="center">Alt + Shift + 左键双击</td>
<td align="center">选择被双击的单词 / 中文句，按住不放，可以同时选择其他单词 / 中文句</td>
</tr>
<tr>
<td align="center">Alt + Shift + 前方向键</td>
<td align="center">移动光标所在行向上移动</td>
</tr>
<tr>
<td align="center">Alt + Shift + 后方向键</td>
<td align="center">移动光标所在行向下移动</td>
</tr>
</tbody></table>
<h3 id="Ctrl-Shift-Alt"><a href="#Ctrl-Shift-Alt" class="headerlink" title="Ctrl + Shift + Alt"></a>Ctrl + Shift + Alt</h3><table>
<thead>
<tr>
<th align="center">快捷键</th>
<th align="center">介绍</th>
</tr>
</thead>
<tbody><tr>
<td align="center">Ctrl + Shift + Alt + V</td>
<td align="center">无格式黏贴</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + Alt + N</td>
<td align="center">前往指定的变量 / 方法</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + Alt + S</td>
<td align="center">打开当前项目设置</td>
</tr>
<tr>
<td align="center">Ctrl + Shift + Alt + C</td>
<td align="center">复制参考信息</td>
</tr>
</tbody></table>
<h3 id="其它"><a href="#其它" class="headerlink" title="其它"></a>其它</h3><table>
<thead>
<tr>
<th align="center">快捷键</th>
<th align="center">介绍</th>
</tr>
</thead>
<tbody><tr>
<td align="center">F2</td>
<td align="center">跳转到下一个高亮错误 或 警告位置 <code>（必备）</code></td>
</tr>
<tr>
<td align="center">F3</td>
<td align="center">在查找模式下，定位到下一个匹配处</td>
</tr>
<tr>
<td align="center">F4</td>
<td align="center">编辑源</td>
</tr>
<tr>
<td align="center">F7</td>
<td align="center">在 <code>Debug</code> 模式下，进入下一步，如果当前行断点是一个方法，则进入当前方法体内，如果该方法体还有方法，则不会进入该内嵌的方法中</td>
</tr>
<tr>
<td align="center">F8</td>
<td align="center">在 <code>Debug</code> 模式下，进入下一步，如果当前行断点是一个方法，则不进入当前方法体内</td>
</tr>
<tr>
<td align="center">F9</td>
<td align="center">在 <code>Debug</code> 模式下，恢复程序运行，但是如果该断点下面代码还有断点则停在下一个断点上</td>
</tr>
<tr>
<td align="center">F11</td>
<td align="center">添加书签</td>
</tr>
<tr>
<td align="center">F12</td>
<td align="center">回到前一个工具窗口</td>
</tr>
<tr>
<td align="center">Tab</td>
<td align="center">缩进</td>
</tr>
<tr>
<td align="center">ESC</td>
<td align="center">从工具窗口进入代码文件窗口</td>
</tr>
<tr>
<td align="center">连按两次Shift</td>
<td align="center">弹出 <code>Search Everywhere</code> 弹出层</td>
</tr>
</tbody></table>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="mailto:undefined" rel="external nofollow noreferrer">LeDao</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="https://blog.zoutl.cn/1.html">https://blog.zoutl.cn/1.html</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="external nofollow noreferrer" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://blog.zoutl.cn" target="_blank">LeDao的博客</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/idea%E4%BD%BF%E7%94%A8/">idea使用</a></div><div class="post_share"></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-full"><a href="/2.html"><img class="prev-cover" src="https://image.zoutl.cn/hexo-blog/blogCoverImage/2.jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">Java环境配置</div></div></a></div></nav><div class="relatedPosts"><div class="headline"><i class="fas fa-thumbs-up fa-fw"></i><span> 相关推荐</span></div><div class="relatedPosts-list"><div><a href="/144.html" title="idea配置Maven"><img class="cover" src="https://image.zoutl.cn/hexo-blog/blogCoverImage/144.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2021-06-15</div><div class="title">idea配置Maven</div></div></a></div><div><a href="/146.html" title="idea从GitHub克隆项目"><img class="cover" src="https://image.zoutl.cn/hexo-blog/blogCoverImage/146.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2021-06-15</div><div class="title">idea从GitHub克隆项目</div></div></a></div><div><a href="/148.html" title="idea配置Tomcat"><img class="cover" src="https://image.zoutl.cn/hexo-blog/blogCoverImage/148.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2021-06-15</div><div class="title">idea配置Tomcat</div></div></a></div><div><a href="/181.html" title="Spring Boot项目添加webapp目录"><img class="cover" src="https://image.zoutl.cn/hexo-blog/blogCoverImage/181.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2021-06-24</div><div class="title">Spring Boot项目添加webapp目录</div></div></a></div><div><a href="/21.html" title="idea将Spring Boot项目打包成war包"><img class="cover" src="https://image.zoutl.cn/hexo-blog/blogCoverImage/21.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2020-10-15</div><div class="title">idea将Spring Boot项目打包成war包</div></div></a></div><div><a href="/22.html" title="idea Maven工具栏按钮的作用"><img class="cover" src="https://image.zoutl.cn/hexo-blog/blogCoverImage/22.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2020-10-15</div><div class="title">idea Maven工具栏按钮的作用</div></div></a></div></div></div><hr/><div id="post-comment"><div class="comment-head"><div class="comment-headline"><i class="fas fa-comments fa-fw"></i><span> 评论</span></div></div><div class="comment-wrap"><div><div id="gitalk-container"></div></div></div></div></div><div class="aside-content" id="aside-content"><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#Alt"><span class="toc-number">1.</span> <span class="toc-text">Alt</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Ctrl"><span class="toc-number">2.</span> <span class="toc-text">Ctrl</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Shift"><span class="toc-number">3.</span> <span class="toc-text">Shift</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Ctrl-Alt"><span class="toc-number">4.</span> <span class="toc-text">Ctrl + Alt</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Ctrl-Shift"><span class="toc-number">5.</span> <span class="toc-text">Ctrl + Shift</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Alt-Shift"><span class="toc-number">6.</span> <span class="toc-text">Alt + Shift</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Ctrl-Shift-Alt"><span class="toc-number">7.</span> <span class="toc-text">Ctrl + Shift + Alt</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%85%B6%E5%AE%83"><span class="toc-number">8.</span> <span class="toc-text">其它</span></a></li></ol></div></div></div></div></main><footer id="footer" style="background-image: url('https://image.zoutl.cn/hexo-blog/blogCoverImage/1.jpg')"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2022&nbsp;<i style="color:red;animation: announ_animation 0.8s linear infinite;"class="fa fa-heartbeat"></i> By LeDao</div><div class="footer_custom_text"><span>本网站由</span><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral"><img class="icp-icon" src="https://image.zoutl.cn/hexo-blog/images/%E5%8F%88%E6%8B%8D%E4%BA%91_logo2.png"></a><span>提供CDN加速/云存储服务</span><br/><a target="_blank" rel="noopener external nofollow noreferrer" href="https://beian.miit.gov.cn/">桂ICP备20005695号 </a><img src='https://image.zoutl.cn/hexo-blog/images/beian.png'><a target="_blank" rel="noopener external nofollow noreferrer" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=45098102000418"> 桂公网安备45098102000418号</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="font-plus" type="button" title="放大字体"><i class="fas fa-plus"></i></button><button id="font-minus" type="button" title="缩小字体"><i class="fas fa-minus"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><a id="to_comment" href="#post-comment" title="直达评论"><i class="fas fa-comments"></i></a><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div id="algolia-search"><div class="search-dialog"><div class="search-dialog__title" id="algolia-search-title">Algolia</div><div id="algolia-input-panel"><div id="algolia-search-input"></div></div><hr/><div id="algolia-search-results"><div id="algolia-hits"></div><div id="algolia-pagination"></div><div id="algolia-stats"></div></div><span class="search-close-button"><i class="fas fa-times"></i></span></div><div id="search-mask"></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.js"></script><script>function panguFn () {
  if (typeof pangu === 'object') pangu.autoSpacingPage()
  else {
    getScript('https://cdn.jsdelivr.net/npm/pangu/dist/browser/pangu.min.js')
      .then(() => {
        pangu.autoSpacingPage()
      })
  }
}

function panguInit () {
  if (false){
    GLOBAL_CONFIG_SITE.isPost && panguFn()
  } else {
    panguFn()
  }
}

document.addEventListener('DOMContentLoaded', panguInit)</script><script src="/js/search/algolia.js"></script><script>var preloader = {
  endLoading: () => {
    document.body.style.overflow = 'auto';
    document.getElementById('loading-box').classList.add("loaded")
  },
  initLoading: () => {
    document.body.style.overflow = '';
    document.getElementById('loading-box').classList.remove("loaded")

  }
}
window.addEventListener('load',preloader.endLoading())</script><div class="js-pjax"><script>function addGitalkSource () {
  const ele = document.createElement('link')
  ele.rel = 'stylesheet'
  ele.href= 'https://cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.css'
  document.getElementsByTagName('head')[0].appendChild(ele)
}

function loadGitalk () {
  function initGitalk () {
    var gitalk = new Gitalk(Object.assign({
      clientID: 'e85b530ea329d17050fe',
      clientSecret: '47090eb530100dd0d587d4e4a23de09b8c25d44d',
      repo: 'a6678696.github.io',
      owner: 'a6678696',
      admin: ['a6678696'],
      id: 'a58f7cd63640e4e69b0b7fd43decccb0',
      language: 'zh-CN',
      perPage: 10,
      distractionFreeMode: false,
      pagerDirection: 'last',
      createIssueManually: false,
      updateCountCallback: commentCount
    },null))

    gitalk.render('gitalk-container')
  }

  if (typeof Gitalk === 'function') initGitalk()
  else {
    addGitalkSource()
    getScript('https://cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.min.js').then(initGitalk)
  }
}

function commentCount(n){
  let isCommentCount = document.querySelector('#post-meta .gitalk-comment-count')
  if (isCommentCount) {
    isCommentCount.innerHTML= n
  }
}

if ('Gitalk' === 'Gitalk' || !false) {
  if (false) btf.loadComment(document.getElementById('gitalk-container'), loadGitalk)
  else loadGitalk()
} else {
  function loadOtherComment () {
    loadGitalk()
  }
}</script></div><script defer="defer" id="ribbon" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-ribbon.min.js" size="150" alpha="0.6" zIndex="-1" mobile="false" data-click="true"></script><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/activate-power-mode.min.js"></script><script>POWERMODE.colorful = true;
POWERMODE.shake = true;
POWERMODE.mobile = false;
document.body.addEventListener('input', POWERMODE);
</script><script id="click-heart" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/click-heart.min.js" async="async" mobile="false"></script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>